{messages block="Shoutbox"}
<table style="width: 100%;" cellspacing="0">
        <tr>
            <td>
			<table cellspacing="0" width="100%" class="forumline">
                <tr>
                	<td class="row-header" colspan="2">
                	   <span>
                	      {language text="shoutbox_messages"}
            	       </span>
        	       </td>
                </tr>
		<tr>
    <td class="catBottom">
        {language text="here_you_can_choose_a_time_term_for"}
    </td>
</tr>
<tr>
	<td class="row1">
                <div style="padding: 6px; font-size: 9pt;">
                <form name="frmClear" action="{$sUrl}" method="POST">
                    <table style="width: 100%;" cellpadding="0">
                        <tbody>
                            <tr>
                                <td class="color">{language text="to_leave_logs_for"}
                                                    <select name="period">{html_options options=$aInterval}</select>
                                                    <input type="submit" name="act[Smb]" value=" {language text="submit"} ">
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </form>
            </td>
        </tr>
        <tr>
        	<td class="row1">
        	<table style="width:100%;">
        	<tr>
        		<td>{language text="viewing"} {if $aPaging.toRow == 0}0{else}{$aPaging.fromRow}{/if} - {$aPaging.toRow} {language text="out_of"} {$aPaging.totalRows}</td>
        		<td style="text-align:right;">{include file="$sMainTemplatePath/_blocks/pager.html"}</td>
        	</tr>
        	</table>
        	</td>
        </tr>
        <tr>
        	<td>

        	<table style="width:100%;" cellpadding="0" cellspacing="0">
        	<tr>
        		<th>{language text='Mod_Shoutbox.time'}</th>
        		<th>{language text='Mod_Shoutbox.user'}</th>
        		<th>{language text='Mod_Shoutbox.message'}</th>
        		<th>{language text='Mod_Shoutbox.action'}</th>
        	</tr>
			{foreach from=$aShout item=aShoutbox}
         	<tr>
         		<td class="row1">
         			{$aShoutbox.time|date_format:$sDateFormat}
				</td>
				<td class="row1">
					<a href="{url link=public.user name=$aShoutbox.user}">{$aShoutbox.user}</a>
				</td>
				<td class="row1">
					{$aShoutbox.text}
				</td>
				<td class="row1" style="text-align:center;">
                        <a class="link_action" href="{url link=admin.extra.shoutbox del=$aShoutbox.shoutid}" onclick="if ( !sure('') ) return false;">[ {language text="delete"} ]</a>
				</td>
			</tr>
            {/foreach}
            </table>
        	</td>
        </tr>
        <tr>
        	<td class="row1">
        	<table style="width:100%;">
        	<tr>
        		<td style="text-align:right;">{include file="$sMainTemplatePath/_blocks/pager.html"}</td>
        	</tr>
        	</table>
        	</td>
        </tr>
</table>

</td>
        </tr>
</table>